package com.homegoods.classify.model;

import java.util.Random;

/**
 * Created by kun on 2016/10/26.
 * 模拟数据
 */
public class Constant {

//    /**
//     * 服务器地址
//     */
//    public static final String SERVER_URL = "https://www.myzpzy.com/";    //del shibo.zheng
//    public static final String SERVER_URL = "http://192.168.3.201:8085";  //add shibo.zheng
//    public static final String SERVER_URL = "http://192.168.3.133:8085";  //add shibo.zheng   黎魁
//    public static final String SERVER_URL = "http://192.168.3.221:8085";  //add shibo.zheng   朱元昌
    public static final String SERVER_URL = "http://106.14.127.10:8085";  //add shibo.zheng   外包
//    public static final String SERVER_URL = "http://47.111.154.243:8089";  //add shibo.zheng    外网

    public static final String SERVER_SEARCH_URL = "http://192.168.3.221:18081";

    public static final String TOKENHEAD = "Bearer ";

    /**
     * 终端全局配置
     */
    public static final String JSONDATA_VERSION = "/JosnData/Version.json";


    /**
     * 用户密码登录
     */
//    public static final String CLIENT_PWDLOGIN = "/CAPool/CltLogin.aspx"; //del shibo.zheng
    public static final String CLIENT_PWDLOGIN = "/sso/login";  //add shibo.zheng

    /**
     * 用户手机号登录,手机号验证码注册
     */
//    public static final String CLIENT_PHONELOGIN = "/CAPool/MPhoneLogin.aspx";    //del shibo.zheng
    public static final String CLIENT_PHONELOGIN = "/sso/register"; //add shibo.zheng

    /**
     * 手机号+验证码登录
     */
    public static final String CLIENT_AUTHLOGIN = "/sso/quick/login"; //add shibo.zheng

    /**
     * 微信登录
     */
    public static final String CLIENT_WECHATLOGIN = "/CAPool/WeiXinApi.aspx";
    /**
     * QQ登录
     */
    public static final String CLIENT_QQLOGIN = "/CAPool/QQAPPLogin.aspx";

    /**
     * 用户注册
     */
    public static final String CLIENT_REGISTER = "/CAPool/ClientRegister.aspx";

    /**
     * 获取短信验证码（未注册的）
     */
//    public static final String CLIENT_SMS = "/CAPool/VerificationSMS.aspx";//del shibo.zheng
    public static final String CLIENT_SMS = "/sso/authcode"; //add shibo.zheng

    /**
     * 验证码登录
     */
    public static final String QUICK_LOGIN = "/sso/quick/login";

    /**
     * 快捷登录获取验证码
     */
    public static final String SEND_VERIFYCODE = "/sso/send/verifycode";

    //add shibo.zheng 19/07/01
    /**
     * 发送短信验证码（已注册的）
     */
//    public static final String CLIENT_SEND_VERIFYCODE = "/sso/send/verifycode";   //正式验证码接口，每天只能发送三次
    public static final String CLIENT_SEND_VERIFYCODE = "/sso/authcode";     //临时获取验证码接口，测试用

    /**
     * 找回密码
     */
//    public static final String RESET_PWD = "/CAPool/ForgotPwd.aspx";  //del shibo.zheng
    public static final String RESET_PWD = "/sso/updatePassword";   //add shibo.zheng

    /**
     * 退出登录
     */
    public static final String LOGOUT = "/logout";  //add shibo.zheng 19/07/02

    /**
     * 提交终端设备号
     */
    public static final String POSTDEVICEINFO = "/AppleNS/PostDeviceToken.aspx";


    /**
     * 修改用户信息
     */
//    public static final String CLIENT_UPD = "/CAPool/UpdClienter.aspx";   //del shibo.zheng
    public static final String CLIENT_UPD = "/sso/update/password";  //add shibo.zheng


    /**
     * 首页商品大分列表,购物车列表,删除购物车,我的收益,添加订单，提现，从订单列表支付,店铺详情里的商品列表,商品详情，
     */
//    public static final String SIMPLE_PLAN_CMD = "/amapi/SimplePlanCmd.aspx";
    public static final String SIMPLE_PLAN_CMD = "/product/get";

    /**
     * 获取首页大广告列表,获取首页推荐商品列表，获取分类商品列表，获取店铺详情,按供应商家找商品：,获取评论列表,商品收藏列表,品牌列表
     */
    public static final String DLIST_CENTER = "/AMAPI/DListCenter.aspx";
    /**
     * 获取新品发布数据
     */
    public static final String GET_NEW_PRODUCT_LIST = "/product/getNewProductList";

    /**
     * 我的收益记录列表，文件上传前上报，商品收藏列表，设计师收藏列表，我的邀请列表,我的提现列表,我的粉丝列表,我的退款列表
     */
    public static final String DLISTCENTER = "/amapi/DListCenter.aspx";

    /**
     * 删除我的商品收藏,申请退款页面获取退货原因,重置.修改登录密码，修改支付密码
     */
    public static final String REMOVE_COLLECTION = "/amapi/SimplePlanCmd.aspx";


    /**
     * 获取城市地区,获取我的收货地址列表，社区里的视频列表
     */
//    public static final String CITY_LIST = "/AMAPI/DListCenter.aspx";     //del shibo.zheng 19/07/01
    public static final String CITY_LIST = "/member/address/list";       //add shibo.zheng 19/07/01

    /**
     * 获取订单列表,添加订单前获取的订单详情，添加地址,获取添加地址界面地区选择地址列表,删除收货地址
     */
    public static final String GET_ORDER_LIST = "/amapi/SimplePlanCmd.aspx";

    /**
     * 获取我的订单
     */
    public static final String GET_MY_ORDER_LIST = "/order/list/";
    /**
     * 查询订单售后信息
     */
    public static final String GET_ORDER_AFTER_SALE = "/returnApply/apply/";
    /**
     * 提交订单售后
     */
    public static final String GET_ORDER_AFTER_COMMIT = "/returnApply/commit";
    /**
     * 订单商品查看物流信息
     */
    public static final String POST_ORDER_GET_LOGISTICS = "/after/sale/commit";

    /**
     * 订单售后 图片上传
     */
    public static final String POST_FILE_AFTER_SALE_UP_IMG = "/returnApply/upload/img";
    /**
     * 取消订单
     */
    public static final String GET_CLEAR_MY_ORDER = "/order/cancelOrder";
    /**
     * 获取客服电话
     */
    public static final String GET_ORDER_SERVICE_PHONENUMBER = "/order/getTel/";
    /**
     * 确认收货
     */
    public static final String GET_OBTAIN_MY_ORDER = "/order/receipt/";

    /**
     * 添加收货地址
     */
    public static final String USER_ADDR_API = "/member/address/add";       //add shibo.zheng 19/07/01

    /**
     * 修改收货地址
     */
    public static final String UPDATA_ADDRESS = "/member/address/update";

    /**
     * 删除收货地址
     */
    public static final String USER_DEL_API = "/member/address/delete";       //add shibo.zheng 19/07/04

    /**
     * 设计师列表
     */
    public static final String GET_DESIGNER_LIST = "/amapi/DListCenter.aspx";

    /**
     * 设计师主页详情，新增添加设计师
     */
    public static final String GET_DESIGNER_DETAILS = "/amapi/SimplePlanCmd.aspx";

    /**
     * 发现里的视频列表
     */
    public static final String GET_FIND_VIDEOLIST = "/amapi/DListCenter.aspx";


    /**
     * 文件上传前上报
     */
    public static final String AFU_KDSFFILE = "/AFU2012/KDSFile.aspx";
    /**
     * 添加商品评价
     */
    public static final String AMAPI_AGMESSAGE = "/AMAPI/cgmessageAPI.aspx";

    /**
     * 获取商品详情内的颜色尺码规格,根据token获取用户信息,【084】预支付订单详情
     */
    public static final String AMAPI_SIMPLEPLANCMD = "/AMAPI/SimplePlanCmd.aspx";
    /**
     * 互动信息操作()
     */
    public static final String CAPOOL_CGMESSAGE = "/CAPool/CGMessageAPI.aspx";
    /**
     * 互动信息操作()
     */
    public static final String CAPOOL_UABINDAPI = "/CAPool/UABindAPI.aspx";
    /**
     * 【030】通用商品下单
     */
    public static final String CAPOOL_BUYRCDAPI = "/CAPool/buyrcdAPI.aspx";

    //add shibo.zheng
    /**
     * 获取历史积分记录
     */
    public static final String HISTORY_INTEGRAL = "/point/history/list";

    /**
     * 获取我的积分数据
     */
    public static final String MINE_INTEGRAL_DATA = "/point/info";

    /**
     * 获取积分明细
     */
    public static final String INTEGRAL_INFO = "/point/list";

    /**
     * 获取历史奖牌记录
     */
    public static final String HISTORU_MEDAL = "/medal/history/list";

    /**
     * 获取个人奖牌信息
     */
    public static final String MEDAL_INFO = "/medal/info";

    /**
     * 获取兑换商品列表
     */
    public static final String CONVERT_LIST = "/medal/product/list";

    /**
     * 获取个人奖牌列表
     */
    public static final String MEDAL_LIST = "/medal/list";

    /**
     * 获取提成明细
     */
    public static final String COMMISSION_LIST = "/royalty/list";

    /**
     * 获取提成信息
     */
    public static final String COMMISSION_INFO= "/royalty/info";

    /**
     * 获取历史提成记录
     */
    public static final String HISTORY_COMMISSION = "/royalty/history/list";

    /**
     * 获取个人佣金信息
     */
    public static final String BROKERAGE_INFO = "/member/commission/info";

    /**
     * 获取个人佣金明细
     */
    public static final String BROKERAGE_LIST = "/member/commission/list";

    /**
     * 获取个人佣金历史记录
     */
    public static final String HISTROY_BROKERAGE = "/member/commission/history/list";

    /**
     * 获取首页商品分类数据
     */
    public static final String HOME_GROUPS = "/home/groups";

    /**
     * 获取OSS图片上传下载参数
     */
    public static final String GET_OSS_CONFIG = "/aliyun/oss/policy";

    /**
     * 获取订单详情
     */
    public static final String ORDER_DETAIL = "/order/getOrderInfo";

    /**
     * 取消订单
     */
    public static final String GET_CANCEL_ORDER = "/order/cancel";

    /**
     * 售后列表
     */
//    public static final String AFTER_ORDER_LIST = "/after/sale/list/{pageNum}/{pageSize}";
    public static final String AFTER_ORDER_LIST = "/returnApply/list/{pageNum}/{pageSize}";

    /**
     * 撤销售后订单
     */
//    public static final String CANCEL_AFTER_ORDER = "/after/sale/revoke/{id}/{productId}";
    public static final String CANCEL_AFTER_ORDER = "/returnApply/revoke/{returnApplyId}";


    /**
     * 修改售后订单，填写售后物流
     */
    public static final String MODIFY_AFTER_ORDER_LOGISTICS = "/returnApply/logistics";

    /**
     * 售后订单详情
     */
//    public static final String AFTER_ORDER_DETAIL = "/after/sale/detail/{id}";
    public static final String AFTER_ORDER_DETAIL = "/returnApply/detail/{id}";

    /**
     * 获取所有分类
     */
    public static final String BRAND_LIST = "/brand/listAll";
    /**
     * 通过分类信息，获取商品展示列表数据
     */
    public static final String SEARCH_PRODUCT_LIST = "/esProduct/search";
    /**
     * 添加商品收藏
     */
    public static final String ADD_COLLECTION = "/member/collection/add";
    /**
     * 获取商品收藏列表
     */
    public static final String GET_COLLECTION_LIST = "/member/collection/list";
    /**
     * 根据商品id删除某条收藏商品
     */
    public static final String DEL_COLLECTION_BYID = "/member/collection/delete/other";
    /**
     * 问题反馈提交
     */
    public static final String FEEDBACK_SAVE = "/feedback/save";


    /**
     * 购物车    测试
     */
    public static final String SHOPPING_CAR = "/cart/list";


    public static Random random = new Random();

    public static final String CITIES_JSON = "{\"datas\":[{\"alifName\":\"C\",\"addressList\":[{\"id\":37,\"name\":\"潮州\"}]},{\"alifName\":\"D\",\"addressList\":[{\"id\":20,\"name\":\"东莞\"}]},{\"alifName\":\"F\",\"addressList\":[{\"id\":21,\"name\":\"佛山\"}]},{\"alifName\":\"G\",\"addressList\":[{\"id\":5,\"name\":\"广州\"}]},{\"alifName\":\"H\",\"addressList\":[{\"id\":29,\"name\":\"惠州\"},{\"id\":32,\"name\":\"河源\"},{\"id\":33,\"name\":\"河源\"}]},{\"alifName\":\"J\",\"addressList\":[{\"id\":25,\"name\":\"江门\"},{\"id\":38,\"name\":\"揭阳\"}]},{\"alifName\":\"M\",\"addressList\":[{\"id\":27,\"name\":\"茂名\"},{\"id\":30,\"name\":\"梅州\"}]},{\"alifName\":\"Q\",\"addressList\":[{\"id\":7,\"name\":\"泉州\"},{\"id\":35,\"name\":\"清远\"}]},{\"alifName\":\"S\",\"addressList\":[{\"id\":6,\"name\":\"深圳\"},{\"id\":22,\"name\":\"韶关\"},{\"id\":24,\"name\":\"汕头\"},{\"id\":31,\"name\":\"汕尾\"}]},{\"alifName\":\"Y\",\"addressList\":[{\"id\":34,\"name\":\"阳江\"},{\"id\":39,\"name\":\"云浮\"}]},{\"alifName\":\"Z\",\"addressList\":[{\"id\":23,\"name\":\"珠海\"},{\"id\":26,\"name\":\"湛江\"},{\"id\":28,\"name\":\"肇庆\"},{\"id\":36,\"name\":\"中山\"}]}]}";

    public static final String TEST_IMG_URL = "https://picsum.photos/500/500/?random=";
    public static final String TEST_AD_URL = "https://picsum.photos/400/300/?random=";
    public static final String TEST_V_URL = "https://picsum.photos/500/700/?random=";

    public static final String GOODS_PARAM = "[" +
            "    {" +
            "        \"name\": \"规格\"," +
            "        \"speclist\": [" +
            "            {" +
            "                \"spename\": \"客厅吸顶灯 914*204*75\"," +
            "                \"marketprices\": 100," +
            "                \"sid\": 1" +
            "            }," +
            "            {" +
            "                \"spename\": \"客厅吸顶灯 914*204*75\"," +
            "                \"marketprices\": 100," +
            "                \"sid\": 1" +
            "            }," +
            "            {" +
            "                \"spename\": \"客厅吸顶灯 914*204*75\"," +
            "                \"marketprices\": 100," +
            "                \"sid\": 1" +
            "            }," +
            "            {" +
            "                \"spename\": \"客厅吸顶灯 914*204*75\"," +
            "                \"marketprices\": 100," +
            "                \"sid\": 1" +
            "            }," +
            "            {" +
            "                \"spename\": \"客厅吸顶灯 914*204*75\"," +
            "                \"marketprices\": 100," +
            "                \"sid\": 1" +
            "            }" +
            "        ]" +
            "    }," +
            "    {" +
            "        \"name\": \"服务\"," +
            "        \"speclist\": [" +
            "            {" +
            "                \"spename\": \"我自己安装即可\"," +
            "                \"marketprices\": 0," +
            "                \"sid\": 4" +
            "            }," +
            "            {" +
            "                \"spename\": \"师傅上门安装\"," +
            "                \"marketprices\": 10," +
            "                \"sid\": 5" +
            "            }" +
            "        ]" +
            "    }" +
            "]";

    public final static String GOODS_INTRO = "[" +
            "    {" +
            "        \"name\": \"类型\"," +
            "        \"intro\": \"智能设备、家电配件\"" +
            "    }," +
            "    {" +
            "        \"name\": \"产品材质\"," +
            "        \"intro\": \"铝型材冲花，折弯无缝焊接配合PMMA高透光灯罩\"" +
            "    }," +
            "    {" +
            "        \"name\": \"安装说明\"," +
            "        \"intro\": \"下单上门安装灯具的客户请注意：\n* 灯具到货后，48小时内，我们的安装师傅会主动联系您预约上门安装服务时间，请保持电话畅通，并确保安装日留人在安装场。\n* 上门安装服务的细则，请动动手指滚动到详情页底部查看。（含现场施工条件说明和安装费用说明）\"" +
            "    }" +
            "]";
}